home *** CD-ROM | disk | FTP | other *** search
- Path: xs4all.nl!not-for-mail
- From: yrozijn@xs4all.nl (Yvon Rozijn)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Passing arguments to a thread
- Date: 21 Feb 1996 19:11:06 GMT
- Organization: XS4ALL, networking for the masses
- Distribution: world
- Message-ID: <4gfqoa$ggs@news.xs4all.nl>
- References: <4ed1eq$nfi@newsy.ifm.liu.se> <Z9W-x*5yf@yaps.rhein.de> <4f25d2$ak8@newsy.ifm.liu.se> <4f88e8$9bl@news.xs4all.nl> <4gbff8$104@sunsystem5.informatik.tu-muenchen.de>
- NNTP-Posting-Host: asd09-10.dial.xs4all.nl
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- Juergen "Rally" Fischer (fischerj@Informatik.TU-Muenchen.DE) wrote:
- : Yvon Rozijn (yrozijn@xs4all.nl) wrote:
- :
- : : struct Process *proc;
- :
- : : Forbid();
- : : proc=CreateNewProc(...);
- : : if(proc) proc->pr_Task.tc_UserData=whatever_you_want;
- : : Permit();
- :
- : ok, and how to read the data ?
-
- In the child process, you simply do:
-
- struct MyData *mydata=(struct MyData *)FindTask(NULL)->tc_UserData;
-
- : Would this also work with CreateProc of V1.2 ?
-
- I don't know much about CreateProc, but I think it will work there too.
-
- Yvon.
- --
- ___ _
- Q : | #| : \|/ http://www. : [_]_
- -<_>- Yvon : | ==| yrozijn@ : >WWW< xs4all.nl/ : === ) Amiga
- / \ Rozijn : `---' xs4all.nl : /|\ ~yrozijn : O 4000
-